using System;

using Engine.Core;
using Engine.Intelligence;

namespace Test
{
    public class Program
    {
        static void Main(string[] args)
        {
            Component jeroen = new Component("Jeroen");
            Astar tomtom = new Astar(jeroen);

            // Set start time
            DateTime start = DateTime.Now;

            // Retrieve navigation
            Engine.Math.Vector3[] route = tomtom.Navigate(new Engine.Math.Vector3(999, 0, 0), 50);

            // Calculate needed time
            TimeSpan time = DateTime.Now - start;

            // Display results
            Console.WriteLine(time.Milliseconds + " ms taken.");
            Console.WriteLine((route.Length - 1) + " steps needed.");

            // Stop console from closing
            Console.Read();
        }
    }
}
